<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/wm.tld" prefix="wm"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>沈阳外卖网</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Bootstrap -->
<link href="publicui/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<!--[if lt IE 9]>
  <script src="public/js/html5shiv.js"></script>
<![endif]-->
<!-- application  -->
<link href="css/head.css" rel="stylesheet" />
<link href="css/foot.css" rel="stylesheet" />
<link href="css/order.css" rel="stylesheet" />
</head>

<body>
<!-----nav-->
<s:action name="top" executeResult="true"></s:action>
<!---/nav   --> 

<!---/body   -->
<div class="content" > 
<!--   content  -->
<div class="clear"></div>
	<div class="wash-paper clearfix" id="profile">
		<s:if test="leftType==2"><s:include value="left.action?urlType=2"></s:include></s:if>
		<s:if test="leftType==3"><s:include value="left.action?urlType=3"></s:include></s:if>
		<div class="main-content">
            <div class="content-header">
              <h2>    <s:if test="leftType==2">最近一个月的订单</s:if><s:if test="leftType==3">一个月之前的订单</s:if>
                - 共<s:property value="pageList.pages.totalNum"/>张
              </h2>
              <!-- 
              <button class="btn-who-get-dishes" id="shuiqunawaimai_open">谁去拿外卖</button>
              <a class="tip-app-promotion" href="#" target="_blank">随时关注饿单状态</a>
               -->
            </div>
        
            <div class="content-inner">
            <!-- 
              <div class="alert rating-time-limit-tips">
              为了更准确地统计餐厅送餐速度，完善点评体系，我们将送餐速度点评时间限定为3小时内。请收到美食后尽快点评~
              </div>
            -->
              <div class="order-list">
              <!--    循环开始   -->
              <s:if test="pageList!=null">
              <s:iterator id="l" value="%{pageList.ObjectList}">
             	 <span id="ref_time" ref_time='1364954294000'></span>
                     <div class="order-block">
            
                     <div class="order-header">
                      <div class="status-wrapper">
                        <div class="status orange">
                        <!-- 
                          <s:if test="#l.state==0">下单</s:if>
                          <s:if test="#l.state==1">饭店接单</s:if>
                          <s:if test="#l.state==2">送出</s:if>
                          <s:if test="#l.state==3">交易成功</s:if>
                          @ -->
                          <a href="/hd-jznrmdw" target="_blank"><s:property value="#l.resName"/></a>
                        </div>
            
            <!-- 
                        <div class="order-actions">
                                      <a class="btn-cancel cancel_order_by_phone" order_sn="12428409764321312" rest_phone="010-82176544 13466383093" rest_name="加州牛肉饭两份起送" logo="http://fuss10.elemecdn.com/3/8b/552f12c820e016539eb6aca0ad02fjpeg.jpeg" total="44"><i></i>电话退单</a>
                         </div>
            -->
                      </div>
            
                      
                      <div class="line-two">
                        <table class="table table-condensed">
                          <tbody>
                            <tr>
                              <td class="col1"><span class="item-name">下单时间:</span><span class='om_time'><s:date name="#l.addTime" format="yyyy年MM月dd日 HH:mm"/></span><!-- <span class="item-name">订单号:</span> 12428409764321312--></td>
                              <td class="col2"><span class="item-name">餐厅电话: <s:property value="#l.restaurant.phone"/></span></td>
                               <td class="col2"><span class="item-name">餐厅电话: <s:property value="#l.restaurant.phone2"/> </span></td>
                            </tr>
                            <!-- 
                            <tr>
                              <td class="col1"><span class="item-name">送餐地址:</span> <s:property value="#l.address"/> </td>
                              <td class="col2"><span class="item-name">联系电话:</span> <s:property value="#l.phone"/> </td>
                              <td class="col3"><span class="item-name">备用电话:</span> <s:property value="#l.back_phone"/> </td>
                            </tr>
                             -->
                            
                          </tbody>
                        </table>
                      </div>
                    </div>
                    
                    <div class="order-table-wrapper">
                           <table class="order-table table table-striped">
                            <thead>
                              <tr>
                                <th class="col-name">美食篮子</th>
                                <th class="col-rating"></th>
                                <th class="col-price">单价</th>
                                <th class="col-quantity">数量</th>
                                <th class="col-sub-total">小计</th>
                              </tr>
                            </thead>
            				<s:if test="#l.menuList!=null">
                            <tbody>
                            <s:iterator id="ml" value="%{#l.menuList}">
                               <tr>
                                    <td class="col-name">
                                      <span><s:property value="#ml.menuName"/></span>
                                    </td>
                                    <td class="col-price">￥<s:property value="#ml.priceShow"/></td>
                                    <td class="col-quantity"><s:property value="#ml.copies"/></td>
                                    <td class="col-sub-total">￥<s:property value="#ml.totalPriceShow"/></td>
                                </tr>
            				</s:iterator>
            				</tbody>
                            </s:if>
                          </table>
                          <!-- 
                          <table class="order-table table table-striped">
                            <thead>
                              <tr>
                                <th class="col-name">其他费用</th>
                                <th class="col-rating"></th>
                                <th class="col-price">单价</th>
                                <th class="col-quantity">数量</th>
                                <th class="col-sub-total">小计</th>
                              </tr>
                            </thead>
                            <tbody>
                                              </tbody>
                          </table>
                        -->
                        <table class="order-table total-table table table-striped">
                          <tfoot>
                            <tr>
                              <td class="col-name">合计</td>
                              <td class="col-rating"></td>
                              <td class="col-price"></td>
                              <td class="col-quantity"><s:property value="#l.totalCopies"/></td>
                              <td class="col-sub-total">￥<s:property value="#l.totalPriceShow"/></td>
                            </tr>
                          </tfoot>
                        </table>
                    </div>
            
                  </div>
               </s:iterator>
               <wm:pages value="%{pageList.pages}"/>
               </s:if>
               <!--    循环结束   -->
              </div>
            
              </div>
            
            </div>
        </div>

	
<!--   /content  -->
   <s:action name="foot" executeResult="true"></s:action>
</div>
<!--  alert div start---->
<div id="copy_dlg_restaurant"  class="restaurant-hover-dlg right hide" >
  <div class="wrapper dark_shadow">
    <div class="callout_tip"></div>
    <div class="detail"> </div>
  </div>
</div>
<!--  alert div  end ---->

<!---/body   --> 


<script src="publicui/js/jquery-1.8.3.js"></script> 
<script src="publicui/jquery-ui/js/jquery-ui-1.9.2.custom.js"></script> 
<script src="publicui/bootstrap/js/bootstrap.min.js"></script> 
<script src="js/head.js"></script> 


</body>
</html>
